import java.util.Arrays;

public class SortArrayInt {
	
	public static void main(String[] args) {

	    int iArr[] = {2, 1, 9, 6, 4, 8, 55, 77, 41, 0, 4};

	    System.out.println("Array before sorting");
	    for (int number : iArr) {
	      System.out.print(number+" ");
	    }
	    
	    Arrays.sort(iArr);

	    System.out.println("\nArray After sorting");
	    for (int number : iArr) {
	      System.out.print( number+ " ");
	    }
	}
}

/* Result
Array before sorting
2 1 9 6 4 8 55 77 41 0 4 
Array After sorting
0 1 2 4 4 6 8 9 41 55 77 
 */
